s="123456789"
s_1=s[::-1]
print(s,"\n",s_1)